﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EasyHome.Models
{
    public class TablaDato
    {
        [Key]
        public Guid id { get; set; }
        [Required]
        [ForeignKey("TablaGenerica")]
        [Display(Name="Tabla")]
        public Guid TablaGenericaId { get; set; }
        [Required]
        public string Descripcion { get; set; }
        [Required]
        [Display(Name = "Abreviada")]
        public string DescripcionAbreviada { get; set; }
        [Display(Name = "Adicional")]
        public Boolean AdicionalString { get; set; }
        public Boolean AdicionalDecimal { get; set; }
        public Boolean AdicionalBoolean { get; set; }
        public Boolean AdicionalDate { get; set; }
        public virtual TablaGenerica TablaGenerica { get; set; }
        public ICollection<TablaAdicional> TablaAdicional { set; get; }
    }
}